home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
jx4nt123.zip
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1994-09-05
|
4KB
|
115 lines
# jax4th makefile ... 32-bit ANS Forth for Windows NT
# copyright (c) 1993, 1994 by jack j. woehr
# p.o. box 51, golden, co 80402-0051
# jax@well.sf.ca.us | JAX on GEnie | 72203.1320@compuserve.com
# sysop, rcfb (303) 278-0364
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. (copying.txt)
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
!include <ntwin32.mak>
#################################################
# The project and ancillary products #
#################################################
PROJ = jax4th
EXES = jax4th.exe uniblock.exe uniascii.exe
CUTILS = uniblock.exe uniascii.exe
DOCS = doc\jax4th.doc
EXAMPLES = example\paste.blk example\shortest.f
UTILS = utils\utils.utf utils\editor.utf utils\memory.utf utils\syscalls.utf utils\ub2t.utf
UTILS1 = utils\yiqing.utf
LICENSE = doc\copying.txt
MISC = doc\read_1st.txt
#########################
# Source files #
#########################
SOURCES = jax4th.a jax4th.i jx4files.a windows.i makefile uniblock.c uniascii.c
RESOURCES = jax4th.ico jax4th.rc
#################################
# Assembly control #
#################################
MASM=ml.exe
# make sure the correct ml.exe is in your path!
MASMOPTS= /c /Cp /Ta
# Assemble without linking, preserve case of user identifiers, assemble non-.ASM files.
MASMEXTOPTS= /Sa /Fl$(PROJ).lst
# Generate a listing file.
REV = 123
# Current revision
# Make all executables
all: $(EXES)
# Make just the C-coded utilities
cutils: $(CUTILS)
# Make Jax4th
$(PROJ).exe: $(PROJ).obj $(PROJ).rbj
$(link) -subsystem:console -stack:0x8000,0x8000 -entry:main \
-section:.text,w -out:$*.exe $(PROJ).obj $(PROJ).rbj $(baselibs) \
comdlg32.lib
$(PROJ).obj: $(PROJ).a $(PROJ).i jx4files.a windows.i makefile
$(MASM) $(MASMOPTS) $(PROJ).a
# $(MASM) $(MASMEXTOPTS) $(MASMOPTS) $(PROJ).a
# Choose the second line instead of the first if you want a listing file.
$(PROJ).rbj: $(PROJ).res
cvtres -$(CPU) $(PROJ).res -o $(PROJ).rbj
$(PROJ).res: $(PROJ).rc
$(rc) $(rcvars) -r -fo $(PROJ).res $(cvars) $(PROJ).rc
# Make the Unicode <> ASCII utilities
uniblock.exe: uniblock.obj
$(link) $(conflags) -out:$*.exe $** $(conlibs)
uniascii.exe: uniascii.obj
$(link) $(conflags) -out:$*.exe $** $(conlibs)
# Rules
.c.obj:
$(cc) $(cflags) $(cvars) $*.c
noobjs:
-erase *.obj
nolistings:
-erase *.lst *.crf
clean:
-erase *.obj
-erase *.exe
#################################
# Distribution archive #
#################################
distribution:
-pkzip -a distrib\jx4nt$(REV).zip $(LICENSE) $(MISC)
-pkzip -a -P distrib\jx4nt$(REV).zip $(EXES)
-pkzip -a -P distrib\jx4nt$(REV).zip $(SOURCES)
-pkzip -a -P distrib\jx4nt$(REV).zip $(RESOURCES)
-pkzip -a -P distrib\jx4nt$(REV).zip $(DOCS)
-pkzip -a -P distrib\jx4nt$(REV).zip $(EXAMPLES)
-pkzip -a -P distrib\jx4nt$(REV).zip $(UTILS)
-pkzip -a -P distrib\jx4nt$(REV).zip $(UTILS1)
#########################
# END of Makefile #
#########################